*********************************************************************
*TABLE 7: Change in defensive ownership, 2004 to 2006, Orange is base 
*********************************************************************
local mresult "Results/TableA7o.xls"

set more off

*Change in foreign (baseline)
use "Regressions Data/baseline0406_nown.dta",clear
keep if year==2004
reg dfo blue gray lemp tfp privatized sec1 sec2 sec4-sec10, cluster(group) 
outreg2 using `mresult', replace dec(3) ctitle(foreign OLS) keep(blue gray lemp tfp privatized)

*Change in foreign (JSCReg)
use "Regressions Data/JSCReg0406_nown.dta",clear
keep if year==2004
*Change in foreign
reg dfo blue gray lemp tfp privatized sec1 sec2 sec4-sec10, cluster(group) 
outreg2 using `mresult', append dec(3) ctitle(foreign OLS) keep(blue gray lemp tfp privatized)


*Change in offshore (baseline)
use "Regressions Data/baseline0406_nown.dta",clear
keep if year==2004
reg doff blue gray lemp tfp privatized sec1 sec2 sec4-sec10, cluster(group) 
outreg2 using `mresult', append dec(3) ctitle(offshore OLS) keep(blue gray lemp tfp privatized)

**Change in offshore (JSCReg)
use "Regressions Data/JSCReg0406_nown.dta",clear
keep if year==2004
*Change in offshore
reg doff blue gray lemp tfp privatized sec1 sec2 sec4-sec10, cluster(group) 
outreg2 using `mresult', append dec(3) ctitle(offshore OLS) keep(blue gray lemp tfp privatized)
